package zee.com.customviewexample.fragment

import android.app.ActionBar
import android.widget.LinearLayout

import com.zee.view.ZxBannerView

import zee.com.customviewexample.R

class BannerView_Fragment : BaseFragment() {


    override fun getLayoutID(): Int {
        return 0
    }

    override fun initViews() {
        val bannerViewA = ZxBannerView(activity)
        val config = bannerViewA.zxBannerViewConfig
        config.setDrawable(R.mipmap.live_tab_small_live, R.mipmap.live_tab_small_live_press)
        val layout = LinearLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, 375)
        bannerViewA.layoutParams = layout
        config.setBorderColor(R.color.abc_search_url_text, R.color.abc_btn_colored_borderless_text_material)
        config.setColor(R.color.abc_btn_colored_borderless_text_material, R.color.abc_search_url_text)
        config.isAnimal = true
    }
}
